package com.dingwen.treasure.base.exception;

import org.springframework.http.HttpStatus;

/**
 * 　AuthException: 认证异常
 * 　@author dingwen
 * 　@date 2022/6/12
 */
public class AuthException extends AbstractBaseRuntimeException {
    private static final long serialVersionUID = -2615461790433354487L;

    /**
     * 有参构造器子类调用
     *
     * @param message 异常消息
     */
    public AuthException(String message) {
        super(HttpStatus.UNAUTHORIZED.value(), message);
    }


    /**
     * 有参构造器子类调用
     *
     * @param code    异常码
     * @param message 异常消息
     */
    public AuthException(Integer code, String message) {
        super(code, message);
    }
}
